/*
 * Copyright:  2018 smarabbit studio.
 *
 *  Licensed under the Confluent Community License; you may not use this file
 *  except in compliance with the License.  You may obtain a copy of the License at
 *
 *  http://www.confluent.io/confluent-community-license
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 *  WARRANTIES OF ANY KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations under the License.
 *
 *  @作   者： 黄开晖 (117227773@qq.com)
 *  @日   期:  2021年5月29日
 */
package com.massyframework.beanskin;

/**
 * 模块运行时抛出的例外
 * <p>
 * 本例外可用于包装在框架启动阶段触发的各种例外
 * @author huangkh
 *
 */
public class ModuleRuntimeException extends ModuleException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1776813875050256879L;


	/**
	 * 使用模块标识符和例外消息创建新实例
	 * @param moduleIdentifier {@link ModuleIdentifier},模板标识符
	 * @param message {@link String},错误消息
	 */
	public ModuleRuntimeException(ModuleIdentifier moduleIdentifier, String message) {
		super(moduleIdentifier, message);
	}

	/**
	 * 使用模块标识符、例外和消息创建新实例
	 * @param moduleIdentifier {@link ModuleIdentifier},模板标识符
	 * @param message {@link String},错误消息
	 * @param cause {@link Throwable}, 引发的例外
	 */
	/*
	public ModuleRuntimeException(ModuleIdentifier moduleIdentifier, String message, Throwable cause) {
		super(moduleIdentifier, message, cause);
	}
	*/

	/**
	 * 使用模块标识符、例外创建新实例
	 * @param module {@link ModuleIdentifier},模板标识符
	 * @param cause  {@link Throwable}, 引发的例外
	 */
	public ModuleRuntimeException(ModuleIdentifier moduleIdentifier, Throwable cause) {
		super(moduleIdentifier, cause);
	}

}
